<?php
if (!Zend_Auth::getInstance()->hasIdentity()) {
    //admin
    echo '<a href="'.$this->url(array(
                        'module'     => '',
                        'controller' => 'authorization',
                        'action'     => 'admin'
                     )).'">Admin</a><br />';

    //publisher
    echo '<a href="'.$this->url(array(
                        'module'     => '',
                        'controller' => 'authorization',
                        'action'     => 'publisher'
                     )).'">Войти как публикатор</a><br />';

    //advertiser
    echo '<a href="'.$this->url(array(
                        'module'     => '',
                        'controller' => 'authorization',
                        'action'     => 'advertiser'
                     )).'">Войти как рекламодатель</a><br />';
}    
if (Zend_Auth::getInstance()->hasIdentity()) {
    $role = Zend_Auth::getInstance()->getIdentity()->role;
    if ($role != 'admin') {
        echo '<a href="'.$this->url(array(
                        'module'     => '',
                        'controller' => 'pub',
                        'action'     => $role
                     )).'">Личный кабинет</a><br />';
    } else {
        echo '<a href="'.$this->url(array(
                        'module'     => '',
                        'controller' => 'back',
                        'action'     => 'admin'
                     )).'">Личный кабинет</a><br />';
    }    
}
?>
<br />
Advertiser:
adv
12345678

<br />
Publisher:
pub
12345678

<br />
Admin:
admin
12345

    <!--BANNER -->
    <script type="text/javascript" src="/js/our_js/head.js"></script>
    <script>
    head.js(        
        "/js/our_js/send_data.js",
        function() {
            var code = 'f90897a601f2ad88cc237e0ea2ef679e07507478';
            getAdver(code);
        });         
    </script>         
    <div id="div_banner_id">        
    </div>    
    <!-- END BANNER -->


